/*
 * Created: Author: Aléx Carvalho / Date: Jan 23, 2015
 * 
 * Changed: $Author: ac280593@gmail.com $ / $Date: 2015-06-04 21:24:45 -0300 (Thu, 04 Jun 2015) $
 */

package com.cpm.entities;

import com.cpm.entities.types.Family;
import com.cpm.wrapper.Performance;
import com.cpm.wrapper.Position;
import javax.persistence.Entity;

@Entity
public class Folder extends Node<Folder> {
    private static final long serialVersionUID = 1L;
    
    public Folder() {}

    public Folder(Integer parentId, Family parentFamily, Performance performance, String name, Information information, User responsible, StrategicPlan strategicPlan, Position position) {
        this.parentId = parentId;
        this.parentFamily = parentFamily;
        this.performance = performance;
        this.name = name;
        this.information = information;
        this.responsible = responsible;
        this.strategicPlan = strategicPlan;
        this.position = position;
    }

    public StrategicPlan getStrategicPlan() { return strategicPlan; }

    @Override
    public Folder clone() {
        return null;
    }

    @Override
    public Family getFamily() { return Family.FOLDER; }

    @Override
    public String toString() { return name; }
}
